package com.ftg.learn.common.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;


@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "后端返回给前端的用户实体类")
public class SysUserVo {

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "用户名", required = true, example = "admin")
    private String username;

    @Schema(description = "真实姓名", required = true, example = "张三")
    private String realName;

    @Schema(description = "邮箱", required = false, example = "123456@qq.com")
    private String email;

    @Schema(description = "手机号", required = false, example = "12345678901")
    private String phone;

    @Schema(description = "地址", required = false, example = "北京")
    private String address;

    @Schema(description = "部门ID", required = true, example = "1")
    private Long deptId;

    //    @TableField("gmt_create")
    //    @Schema(description = "创建时间", required = false, example = "2020-01-01 00:00:00")
    private String createTime;

    //    @TableField("gmt_modify")
    //    @Schema(description = "更新时间", required = false, example = "2020-01-01 00:00:00")
    private String updateTime;
}
